package com.bonc.rms.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bonc.rms.dao.UserInfoDao;
import com.bonc.rms.service.UserInfoService;

@Service(value = "userInfoServiceImpl")
public class UserInfoServiceImpl implements UserInfoService{
	@Autowired
	UserInfoDao userInfoDao;

	@Override
	public List<Map<String, Object>> getUserInfo() {
		return userInfoDao.getUserInfo();
	}

	@Override
	public List<Map<String, Object>> updateUserInfo(Integer userId, String userName, String password, String address,
			String email, String mobilePhone, String sex) {
		return userInfoDao.updateUserInfo(userId,userName,password,address,email,mobilePhone,sex);
	}

	@Override
	public Integer deleteUserInfo(Integer userId) {
		return userInfoDao.deleteUserInfo(userId);
	}

	@Override
	public List<Map<String, Object>> getSingleUserInfo(Integer userId) {
		return userInfoDao.getSingleUserInfo(userId);
	}

}
